//
//  PhotoImageModel.h
//  WuliHanhan
//
//  Created by chen tang on 16/3/9.
//  Copyright © 2016年 LVpeng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Header.h"
#import <PhotosUI/PhotosUI.h>

typedef void(^callBackImageWithTumb)(NSArray *array, NSArray *imageSourceArray);
typedef void(^callBackImage)(NSData *ornImageData);


@protocol PhotoImageModelDelegate <NSObject>

- (void)callBackWithImageArrayTumb:(NSArray *)tumbArray;


@end


@interface PhotoImageModel : NSObject

SINGLETON_INTERFACE(PhotoImageModel);

@property (nonatomic, assign) id<PhotoImageModelDelegate>MPhotoImageModelDelegate;


//@property (nonatomic, strong) callBackImageWithTumb _callBackImageWithTumb;




//只读
@property (nonatomic, strong, readonly) NSArray *titleArray;            //获取相册名称



//选中获取照片
- (void)setSelectAtIndenx:(int)index WithCallBack:(callBackImageWithTumb)tumb;




//读取相册
+ (id)startReadPhotos;


//获得相册照片
- (void)getThumbnailImages;


- (void)selectAsset:(PHAsset *)assest getOrnImage:(callBackImage)imagetumb;



//选中第几个相册获得图片

@end
